package com.resign.carl.abstractfactory;

import com.resign.carl.abstractfactory.api.Button;
import com.resign.carl.abstractfactory.api.ComboBox;
import com.resign.carl.abstractfactory.api.SkinFactory;
import com.resign.carl.abstractfactory.api.TextField;
import com.resign.carl.abstractfactory.api.impl.SpringSkinFactory;

/**
 * abstract factory
 * Created by carl.zhao on 2016/6/14.
 */
public class Client {
    public static void main(String[] args) {
        SkinFactory factory = new SpringSkinFactory();
        final Button button = factory.createButton();
        final ComboBox comboBox = factory.createComboBox();
        final TextField textField = factory.createTextField();
        button.display();
        comboBox.display();
        textField.display();
    }
}
